.TH DIRNAME 1L "GNU Shell Utilities" "FSF" \" -*- nroff -*-
.SH NAME
dirname \- strip filename suffix from pathname
.SH SYNOPSIS
.B dirname
path
.br
.B dirname
{\-\-help,\-\-version}
.SH DESCRIPTION
This manual page
documents the GNU version of
.BR dirname .
.B dirname
prints the leading path part of the pathname
.IR path .
If
.I path
does not contain a leading path,
.B dirname
prints `.' (meaning the current directory).
.SS OPTIONS
.TP
.I "\-\-help"
Print a usage message on standard output and exit successfully.
.TP
.I "\-\-version"
Print version information on standard output then exit successfully.
